package com.hqyj.module.login.dao;


import com.hqyj.module.login.pojo.YanUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;


@Component
public interface YanUserMapper {

    @Insert("insert into email_info(email_name,email_pwd,startTime) values(#{account},#{code},#{startTime})")
    int regiestUser(YanUser yanUser);

    @Select("select * from email_info where email_name=#{account} and email_pwd=#{code}")
    int emailLogin(YanUser yanUser);
}
